package com.jhgsys.internal.accident.service;

import com.jhgsys.internal.accident.dto.AccidentReportDto;
import com.jhgsys.internal.accident.dto.AccidentReportReasonDto;
import com.jhgsys.internal.accident.dto.AccidentReportRectificationDto;
import com.jhgsys.internal.accident.entity.AccidentReportRectification;
import com.jhgsys.internal.common.entity.QueryRequest;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 *  Service接口
 *
 * @author zjb
 * @date 2024-09-13 10:18:53
 */
public interface IAccidentReportRectificationService extends IService<AccidentReportRectification> {
    /**
     * 查询（分页）
     * @author zjb
     * @date 2024-09-13 10:18:53
     * @param request QueryRequest
     * @param accidentReportRectification accidentReportRectification
     * @return IPage<AccidentReportRectification>
     */
    IPage<AccidentReportRectification> findAccidentReportRectificationPage(QueryRequest request, AccidentReportRectification accidentReportRectification);

    /**
     * 查询（所有）
     * @author zjb
     * @date 2024-09-13 10:18:53
     * @param accidentReportRectification accidentReportRectification
     * @return List<AccidentReportRectification>
     */
    List<AccidentReportRectification> findAccidentReportRectificationList(AccidentReportRectification accidentReportRectification);

    /**
    * 根据ID查询
    * @author zjb
    * @date 2024-09-13 10:18:53
    * @param id
    * @return AccidentReportRectification
    */
    AccidentReportRectification findAccidentReportRectificationById(String id);

    /**
     * 新增
     * @author zjb
     * @date 2024-09-13 10:18:53
     * @param accidentReportRectification accidentReportRectification
     */
    boolean createAccidentReportRectification(AccidentReportRectification accidentReportRectification);

    /**
     * 修改
     * @author zjb
     * @date 2024-09-13 10:18:53
     * @param accidentReportRectification accidentReportRectification
     */
    boolean updateAccidentReportRectification(AccidentReportRectification accidentReportRectification);

    /**
     * 逻辑删除
     * @author zjb
     * @date 2024-09-13 10:18:53
     * @param accidentReportRectification accidentReportRectification
     * @param accidentReportRectificationIds accidentReportRectificationIds
     */
    boolean deleteAccidentReportRectification(AccidentReportRectification accidentReportRectification,String accidentReportRectificationIds);

    /**
    * 物理删除
    * @author zjb
    * @date 2024-09-13 10:18:53
    * @param accidentReportRectificationIds accidentReportRectificationIds
    */
    boolean physicallyDeleteAccidentReportRectification(String accidentReportRectificationIds);

    /**
     * 根据AccidentReport查询（分页）
     * @author zhangwei
     * @date 2024-08-26 16:09:46
     * @param request QueryRequest
     * @param accidentReportDto accidentReportDto
     * @return IPage<AccidentReportRectificationDto>
     */
    IPage<AccidentReportRectificationDto> findPageByReport(QueryRequest request, AccidentReportDto accidentReportDto);
}
